package com.kmxd.ams.client.search.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Map;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 目录浏览 目录树
 *
 * @author nickbi
 */
@Schema(description = "目录浏览目录树")
@Data
public class CatalogSearchTreeDTO implements Serializable {

  /** 档案表名 档案表名，用来区分项目、案卷、文件、盒 */
  @Schema(description = "档案表名 档案表名，用来区分项目、案卷、文件、盒")
  private String tableId;

  /** 门类id */
  @Schema(description = "门类id")
  private Long archTypeId;

  /** 管理库类型：1收集库，2档案库 */
  @Schema(description = "管理库类型：1收集库，2档案库")
  @NotNull(message = "管理库类型不能为空")
  private Integer manageType;

  /** 父节点id 父节点id */
  @Schema(description = "父节点id 父节点id")
  private Long pid;

  /** 父节点id 父节点id */
  @Schema(description = "节点id")
  private Long id;

  @Schema(description = "状态")
  @ExcelProperty(value = "状态")
  private Integer status;

  @Schema(description = "分组节点")
  private Integer groupIndex;

  @Schema(description = "数据条件")
  private String dataCondition;

  @Schema(description = "分组条件")
  private Map<String, String> groupCondition;

  private Long comId;
  private Long fondsId;
  private Integer type;
}
